
import 'package:get/get.dart';
import 'package:nft_shop/market/model/models.dart';
import 'package:nft_shop/net/service_repository.dart';
import 'package:nft_shop/res/constant.dart';

class UserInfoConteroller extends GetxController {
  static final UserInfoID= "UserInfoID";
  static final UserInfoTopInfo= "UserInfoTopInfo";

  late UserInfoModel model;

  int status = LoadStatusType.loading;

  int currentPage = 0;

  static UserInfoConteroller get to => Get.put(UserInfoConteroller());


  void getDataList(String id) async {
    if(id.length == 0){
      return;
    }
    try {
      model = await ServiceRepository.getChuangUserInfo(id);
      status = LoadStatusType.success;
    } catch (e, s) {
      status = LoadStatusType.networkFailure;
    }
    update([UserInfoTopInfo]);
  }




}